home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Mapping
/
m-mix
< prev
next >
Wrap
Lisp/Scheme
|
1998-08-11
|
477b
|
18 lines
m-mix group list
This function is able to mix any number of element patterns in a list or 'interleave' <group> their elements sequentially.
(setq s1 '(a b c d e f g h i j k l))
(setq s2 '(ag bh ci dl ek fl))
(setq s3 '(an bn cn dn en fn gn))
(setq s1-div '(3 2 3 3 1))
(setq s2-div '(1 2 3))
(setq s3-div '(1 1 1 3 1))
(setq symbol
(m-mix
(list s1-div s2-div s3-div)
(list s1 s2 s3)))
=> (a b c ag an d e bh ci bn f g h dl ek fl cn i j k dn en fn l gn)